#include <iostream>
#include "shm.h"

using namespace std;

int main()
{
	write_shm writer;
	if(writer.init() != 0){
		cout <<"write init error" << endl;
		return -1;
	}
	cout <<"write init success" << endl;
	writer.status();
	writer.write_status(16);
	
	read_shm reader;
	if(reader.init() != 0){
		cout <<"read init error" << endl;
		return -1;
	}
	cout <<"read init success" << endl;
	reader.status();
	reader.read_status();

	return 0;
}

